package com.example.AIstudy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.AIstudy.domain.User;
import com.example.AIstudy.exception.AIstudyException;

import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {
    public User getUserByUserName(String name);
    public User getUserByUserID(Integer id);

    public IPage<User> findUsers(Map<String, Object> condition, Integer pageNum, Integer pageSize);

    public User insertUser(User user) throws AIstudyException;
    public void updateUserByID(User user) throws AIstudyException;

    public User getUserByOpenID(String openID);

    public List<Integer> getAllUserID();


}
